<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改会员签到')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-sign-edit" th:object="${mallSign}">
            <input name="signId" th:field="*{signId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">会员id：</label>
                <div class="col-sm-8">
                    <input name="membersId" th:field="*{membersId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">签到月份：</label>
                <div class="col-sm-8">
                    <div class="input-group date"> <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="signMonth"  class="form-control" placeholder="yyyy-MM" type="text">
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">签到数据：</label>
                <div class="col-sm-8">
                    <textarea name="mask" class="form-control">[[*{mask}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">本月连续签到数：</label>
                <div class="col-sm-8">
                    <input name="continueSignMonth" th:field="*{continueSignMonth}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "mall/sign";
        $("#form-sign-edit").validate({
            focusCleanup: true
        });
        $("input[name='signMonth']").datetimepicker({
            format: "yyyy-mm",
            minView: "month",
            autoclose: true
        });
        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-sign-edit').serialize());
            }
        }
    </script>
</body>
</html>